package com.tanhua.dubbo.api.mongo;


import com.tanhua.domain.mongo.Movement;
import com.tanhua.domain.vo.PageResult;

public interface MovementApi {
    void saveMovement(Movement movement);

    PageResult queryFriendMovements(Long userId, Integer page, Integer pagesize);

    PageResult queryRecommendMovements(Long userId, Integer page, Integer pagesize);

    PageResult queryMyselfMovements(Long userId, Integer page, Integer pagesize);


    Movement queryMovementById(String movementId);

    PageResult queryUserMovements(Long uid, Integer page, Integer pagesize, Integer state);

    void updateStateById(String movementId, Integer state);
}